Skip to content

[ExecuTorch][WebGPU] Glob runtime/ops sources in CMakeLists#21005

Open
JCNTH wants to merge 1 commit into
gh/JCNTH/101/basefrom
gh/JCNTH/101/head
Open

[ExecuTorch][WebGPU] Glob runtime/ops sources in CMakeLists#21005
JCNTH wants to merge 1 commit into
gh/JCNTH/101/basefrom
gh/JCNTH/101/head

Conversation

@JCNTH

@JCNTH JCNTH commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

Replace the hand-maintained explicit WEBGPU_SRCS op-handler list with file(GLOB WEBGPU_OP_SRCS CONFIGURE_DEPENDS runtime/ops/*/*.cpp) so adding a new op no longer requires editing this file (addresses review feedback). The five runtime/*.cpp sources and runtime/ops/OperatorRegistry.cpp (which sits directly under ops/, not a per-op subdir) stay explicit. CONFIGURE_DEPENDS re-globs at build time when op sources are added or removed.

The glob resolves to exactly the 40 op handlers the explicit list enumerated (verified set-equal) — no op added or dropped, and static-init registration is order-independent under --whole-archive.

Co-authored-with: Claude Code.

Differential Revision: D112482039

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Jul 17, 2026

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/21005

Note: Links to docs will display an error until the docs builds have been completed.

❌ 9 New Failures

As of commit 1344068 with merge base 18e2ff8 (image):

NEW FAILURES - The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 17, 2026
This was referenced Jul 17, 2026
@github-actions

Copy link
Copy Markdown

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant